#
# Be sure to run `pod lib lint SQAppCore.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'SQAppCore'
  s.version          = '0.1.3'
  s.summary          = 'A shortdf dfs description of SQAppCore.'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = <<-DESC
TODO: Add long description  sff of the pod here.
                       DESC

  s.homepage         = 'https://github.com/laohei/SQAppCore'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'laohei' => 'laohei@ibantang.com' }
  s.source           = { :git => 'http://git.17gwx.com/iOS_lib/SQAPPCore.git', :tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

  s.ios.deployment_target = '9.0'
  s.source_files = 'SQAppCore/Classes/OutSetHeader/**/*'

  s.subspec 'Module' do |router|
      router.source_files = 'SQAppCore/Classes/Module/**/*.{h,m}'
  end
  
  s.subspec 'Category' do |category|
      category.source_files = 'SQAppCore/Classes/Category/**/*.{h,m}'
  end
  
  s.subspec 'PubModel' do |model|
      model.source_files = 'SQAppCore/Classes/PubModel/**/*.{h,m,mm}'
  end
  
  s.subspec 'EventTool' do |eventTool|
      eventTool.source_files = 'SQAppCore/Classes/EventTool/**/*.{h,m}'
      eventTool.dependency 'SQAppCore/PubModel'
  end
  
  s.subspec 'Basic' do |basic|
      basic.source_files = 'SQAppCore/Classes/Basic/**/*.{h,m}'
      basic.dependency 'SQAppCore/Category'
      basic.dependency 'SQAppCore/EventTool'
  end
  
  s.subspec 'AB' do |ab|
    ab.source_files = 'SQAppCore/Classes/AB/**/*.{h,m}'
  end
  
  s.dependency 'SQEventMoudle','0.1.7'
  s.dependency 'SQNetworkLibrary/SQBusinessNetwork','0.1.5'
  s.dependency 'SQToolsLibrary','0.1.4'
  
  s.dependency 'FLAnimatedImage','1.0.12'
  s.dependency 'lottie-ios','2.5.3'
  s.dependency 'IGListKit','2.1.0'
  s.dependency 'YYText'
  s.dependency 'CTMediator'
  s.dependency 'SQBusCommon'
  s.prefix_header_contents = '#import "SQFoundationSafeHeader.h"','#import <Masonry/Masonry.h>','#import <SQToolsLibrary/SQMacroUI.h>','#import <SQToolsLibrary/SQUIDefines.h>'
#  s.dependency 'WCDB'
  s.resource_bundles = {
    'SQAppCore' => ['SQAppCore/Assets/*.xcassets']
  }

  # s.public_header_files = 'Pod/Classes/**/*.h'
  # s.frameworks = 'UIKit', 'MapKit'
  # s.dependency 'AFNetworking', '~> 2.3'
  
  if ENV['push'] == "1"
      puts '-----------------------提交本地pod---------------------------------------'
      dev_url = "./"+s.name
      puts Dir.pwd
      system 'git add .'
      system "git commit -m 'pod 提交'"
      system 'git push origin master'
      puts '--------------------------结束-----------------------------------------'
  end
  
end
